<?php

namespace app\admin\model;

use think\Db;
use think\Model;


class Business extends Model
{

    

    

    // 表名
    protected $name = 'business';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    public function getMenutypeList()
    {
        return ['addtabs' => __('Addtabs'), 'dialog' => __('Dialog'), 'ajax' => __('Ajax'), 'blank' => __('Blank')];
    }

    public function getAll() {
        return Db::name("business")->order('id ASC')->select();
    }

    public function getByBid($bid) {
        return Db::name("business")->where('id', 'eq', $bid)->find();
    }
    

    







}
